<template>
  <div class="demo">
    <div>学校名字:{{ name }}</div>
    <div>学校地址{{ adress }}</div>
    <button @click="showMsg">点我提示学校名称</button>
  </div>
</template>

<script>
    export default {
        name:'School',
        data() {
            return {
                adress:'常州',
                name:'常州信息'
            }
        },
        methods: {
            showMsg(){
                alert(this.name)
            }
        }
    }
</script>

<style>
    .demo{
        background-color: aquamarine;
    }
</style>